﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Survey.ascx.cs" Inherits="Controls_Survey" %>
<asp:GridView runat="server" Width="350" ID="GridViewItem" AutoGenerateColumns="False"
    BorderStyle="None" CellPadding="2" GridLines="Horizontal">
    <RowStyle BackColor="#A9DAFE" BorderColor="#0090FF" BorderStyle="Solid" BorderWidth="1px" />
    <FooterStyle BackColor="#3399FF" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#3399FF" ForeColor="White" HorizontalAlign="Left" />
    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
    <HeaderStyle BackColor="#1B9CFF" Font-Bold="True" ForeColor="White" Height="25px"
        HorizontalAlign="Center" />
    <EditRowStyle BackColor="#2461BF" />
    <AlternatingRowStyle BackColor="White" BorderColor="#0090FF" BorderStyle="Solid"
        BorderWidth="1px" />
    <Columns>
        <asp:TemplateField HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="200px" ItemStyle-HorizontalAlign="left">
            <HeaderTemplate>
                <%= GetLanguage("Mục bình chọn","Poll")%>
            </HeaderTemplate>
            <ItemTemplate>
                <%# GetLanguage(Eval("Detail").ToString(),Eval("Detail_en").ToString()) %>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="150px" ItemStyle-HorizontalAlign="left">
            <HeaderTemplate>
                <%=GetLanguage("Tỉ lệ bình chọn","Vote rate")%>
            </HeaderTemplate>
            <ItemTemplate>
                <%--  <span class="progressBar" id="span" runat="server" ><%#this.GetPercentage(Convert.ToInt32(Eval("RatingLevelID")))%></span>--%>
                <span class="progressBar" id="<%#this.GetAutoIDSpan()%>">
                    <%# GetPercentage(Convert.ToInt32(Eval("VoteID")))%></span>
                   
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
    <EmptyDataTemplate>
        <table align="center" width="300" border="0" bordercolorlight="#0099cc" bordercolor="#0099cc">
            <tr>
                <td height="50" align="center">
                    <div align="center" id="EmptyData">
                        Chưa có bài thăm dò ý kiến nào...</div>
                </td>
            </tr>
        </table>
    </EmptyDataTemplate>
</asp:GridView>
<asp:Label ID="lblCount" runat="server" Style="float: right; padding-right: 10px;
    font-weight: bold; margin-top: 2px"></asp:Label>